set nocompatible

set number relativenumber	" set line number
set autoindent            " set automatically indent
set tabstop=2             " set length of tab to 2
set shiftwidth=2
set softtabstop=2
set expandtab             " replace tab with space
set background=dark       " set background to dark
set wildmenu              " set real time display of matching commands
set cinkeys="0{, 0}, 0), 0], 0#, !^F, o, O, e"
set mouse=""
set hls

" Uncomment the following to have Vim load indentation rules and plugins
" according to the detected filetype.
filetype plugin indent on
set showmatch             " Show matching brackets
set ignorecase            " Do case insensitive matching
set smartcase             " Do smart case matching
set incsearch             " Incremental search
set hidden                " Hide buffers when they are abandoned
set encoding=UTF-8
"set foldenable           " enable to fold
"set foldmethod=syntax    " enable syntax folding
"set foldcolumn=0
"setlocal foldlevel=99
colorscheme everforest    " set color of theme
"hi Normal guibg=NONE ctermbg=NONE
set cursorline            " highlight current line
" highlight Cursorline cterm=NONE ctermbg=black ctermfg=NONE guibg=NONE guifg=NONE
set guicursor="n-v-r-cr:block,i-c-ci-ve:ver25,r-cr:hor20,o:hor50,a:blinkwait700-blinkoff400-blinkon400-Cursor/lCursor,sm:block-blinkwait175-blinkoff150-blinkon175"

" automatically exexute :NERDTree command when enter vim.
" autocmd VimEnter * :NERDTree

" statusline
set laststatus=2
" set statusline=%f\ \ FileType:\ %y\ %l/%L

set list
set listchars=trail:□,tab:\ \

let &t_SI = "\e[6 q"
let &t_EI = "\e[2 q"

if has('termguicolors')
  set termguicolors
endif
